﻿<script src="../../../processing.js"></script>
Copied in PJS using 2 pimages<br />
<canvas datasrc="pimagecopy.pjs" width="200" height="200"></canvas>
<pre>
/* @pjs preload="country.jpg,lake.jpg"; */
size(472,266);
PImage img = loadImage("country.jpg");
PImage img2 = loadImage("lake.jpg");
// copy corner of lake onto country
img.copy(img2, 272, 138, 200, 128, 272, 138, 200, 128);
image(img, 0, 0);
</pre>